Xbasic
Helper::GoogleDriveUploadFile Method
Syntax
UploadFile as C(filename as C)
Arguments
- filenameCharacter
Name of local file to upload to google drive.
Returns
- resultCharacter
Returns id of create file if the file was successfully uploaded to google drive, otherwise returns an empty string.
Description
Upload a file to google drive.
Note that the namedResource and folderId property of the Helper::GoogleDrive instance will need to be set.
Example
dim gd as helper::googleDrive gd.namedResource = "myGoogleServiceApi" gd.folderId = "2tsOm8ICzitKSql_PHzLi8FD5NehLesK6" dim idUploaded as c = gd.UploadFile("c:\data\invoicepie.PNG")